/*
 * @Author: SeonHu
 * @Date: 2025-09-16 14:44:19
 * @LastEditors: SeonHu
 * @LastEditTime: 2025-09-23 15:07:56
 * @FilePath: \bg-vben\src\api\iot\admin\devicestate\model\index.ts
 * @Description:
 * Copyright © 2020-2025 SANQING Corporation, All rights reserved.
 */
import { DeviceStatusEnum } from '@/enums/iot/deviceStatusEnum';

/** 输入DTO：设备状态 */
export interface DeviceStateInputDto {
  /** 编号 */
  Id: bigint | string;

  /** 设备编号 */
  DeviceId: bigint | string;

  /** 启用 */
  Enabled: boolean;
  /** 已连接 */
  Connected: boolean;
  /** 设备状态 */
  Status: DeviceStatusEnum;

  /** 创建时间 */
  CreatedTime: Date;
  /** 结束时间 */
  EndedTime?: Date | null;
}

/** 输出DTO：设备状态 */
export interface DeviceStateOutputDto extends DeviceStateInputDto {
  /** 设备名称 */
  DeviceName: string;

  /** 耗时(毫秒) */
  Elapsed: number;
}
